package com.maimang.platform.common.utils.excel;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Rocky
 * @version 1.0.0
 * @classname Column
 * @description <br>Column实体类</br>
 * @date 2019-10-22 10:17
 * @email jintaozhao@qq.com
 */
public class Column {
	private int totalRow;
	private int totalCol;
	private int row;//excel第几行
	private int col;//excel第几列
	private int rLen; //excel 跨多少行
	private int cLen;//excel跨多少列
	//单元格内容
	private String content;
	//字段名称，用户导出表格时反射调用
	private String fieldName;
	//这个单元格的集合
	private List<Column> columns = new ArrayList<Column>();
	private boolean HasChilren;//是否有子节点
	private int tree_step;//树的级别 从0开始
	private String id;
	private String pid;

	public Column() {
	}

	;

	public Column(String content, String fieldName) {
		this.content = content;
		this.fieldName = fieldName;
	}

	public Column(String fieldName, String content, int tree_step) {
		this.tree_step = tree_step;
		this.fieldName = fieldName;
		this.content = content;
	}

	public int getTotalRow() {
		return totalRow;
	}

	public void setTotalRow(int totalRow) {
		this.totalRow = totalRow;
	}

	public int getTotalCol() {
		return totalCol;
	}

	public void setTotalCol(int totalCol) {
		this.totalCol = totalCol;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public boolean isHasChilren() {
		return HasChilren;
	}

	public void setHasChilren(boolean hasChilren) {
		HasChilren = hasChilren;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public List<Column> getColumns() {
		return columns;
	}

	public void setColumns(List<Column> columns) {
		this.columns = columns;
	}

	public int getTree_step() {
		return tree_step;
	}

	public void setTree_step(int tree_step) {
		this.tree_step = tree_step;
	}

	public int getRow() {
		return row;
	}

	public void setRow(int row) {
		this.row = row;
	}

	public int getCol() {
		return col;
	}

	public void setCol(int col) {
		this.col = col;
	}

	public int getrLen() {
		return rLen;
	}

	public void setrLen(int rLen) {
		this.rLen = rLen;
	}

	public int getcLen() {
		return cLen;
	}

	public void setcLen(int cLen) {
		this.cLen = cLen;
	}
}
